<?php
/**
 * 公共设置包含
 * User: wengdo
 * Date: 2015/12/24
 * Time: 14:10
 */
if(!defined("PHP_IN")){
    die("您没有权限访问");
}
define("ROOT_PATH",dirname(dirname(__FILE__)).'/');   //根目录获取

error_reporting(E_ALL);//错误显示级别

require ROOT_PATH."include/config.php";
require ROOT_PATH."include/func_common.php";
date_default_timezone_set($time_zone);         //设置时区

header("content-type:text/html;charset=utf-8");   //设置php编码

$web_url = "http://localhost/wengdo/";  //远程路劲
$up_load = $web_url."upload/";     //加载路劲
$manage_url = "../upload/";     //图片管理路劲

$service_src = $up_load."service_src/";     //服务图片访问路劲
$service_src_up = $manage_url."service_src/";   //服务图片的保存路劲

$cases_thumb = $up_load."casesthumb/";     //案例图片访问路劲
$cases_thumb_up = $manage_url."casesthumb/";   //案例图片的保存路劲

$slide_src = $up_load."slidesrc/";   //幻灯图访问路劲
$slide_src_up = $manage_url."slidesrc/"; //幻灯图的保存路劲

$user_logo = $up_load."user_logo/";   //用户头像访问路劲
$user_logo_up = "upload/user_logo/";   //用户头像的保存路劲

require ROOT_PATH."include/mysql.class.php";
$db = new Mysql($db_host,$db_user,$db_password,$db_name,$db_charset);    //抽象一个数据库类的对象

require ROOT_PATH."include/smarty/Smarty.class.php";        //导入smarty

$smarty = new Smarty();         //实例化smarty

?>